package com.swh.controller;

import com.swh.entity.User;
import com.swh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/12/10 11:38
 * @Version: 1.0
 */
@Controller
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;

    @RequestMapping("/login")
    public ModelAndView test( ModelAndView view) {
        view.setViewName("hello");
        return view;

    }

}
